<?php $this -> load -> view('adminx/header'); ?>
<!-- BEGIN CONTAINER -->
<div class="page-container">
	<!-- BEGIN SIDEBAR -->
	<?php $this -> load -> view('adminx/mune'); ?>
	<!-- END SIDEBAR -->
	<!-- BEGIN CONTENT -->
	<div class="page-content-wrapper">
		<div class="page-content">
			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<!-- /.modal -->
			<h3 class="page-title"> <?php echo $title; ?> <small><?php echo $en; ?></small></h3>
			<div class="page-bar">
				<ul class="page-breadcrumb">
					<li>
						<i class="fa fa-home"></i>
						<a href="/adminx">首页</a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="#"><?php echo $title; ?></a>
					</li>
				</ul>
			</div>
			<!-- END PAGE HEADER-->
			<div class="clearfix"></div>
			<div class="row">
				<div class="col-md-12 col-sm-12">
					<!-- BEGIN REGIONAL STATS PORTLET-->
					<div class="note note-success">
						<p>1，导出物流单的excel表格，把表格导入物流打印软件去打印好单据；</p>
						<p>2，通过USB接口把条形码扫描枪进入电脑；</p>
						<p>3，设置好发货的物流；</p>
						<p>4，把条形码编号扫入系统，完成出货；</p>
					</div>
					<div class="portlet light ">
						<div class="portlet-title">
							<div class="caption">
								<i class="icon-share font-red-sunglo"></i>
								<span class="caption-subject font-red-sunglo bold uppercase">物流订单</span>
							</div>
							<div class="actions">
								<a class="btn btn-circle btn-icon-only blue" href="javascript:;" onclick="alert_ts('<?php echo $this -> config -> item('xt_ts'); ?>')"> <i class=" icon-bulb"></i> </a>
								<a class="btn btn-circle btn-icon-only green refresh" href="javascript:;" > <i class="icon-refresh"></i> </a>
								<a class="btn btn-circle btn-icon-only red" href="javascript:;"><i class="icon-trash"></i></a>
								<a class="btn btn-circle btn-icon-only btn-default fullscreen" href="javascript:;"> </a>
							</div>
						</div>
						<div class="portlet-body">
							<div class="btn-toolbar margin-bottom-10">
								<form class="btn-toolbar" id="get_tbody" onkeydown="if(event.keyCode==13)return false;">
									<div class="portlet-input input-inline" style="margin-left: 10px;width: 150px;">
										<div class="input-icon right">
											<i class="icon-magnifier"></i>
											<input id="key" name="key" type="text" class="form-control" placeholder="search...">
										</div>
									</div>
									<div class="portlet-input input-inline">
										<select  id="statex" name="state" class="form-control input-circle" style="width: 100px;">
											<option value="1">等待发货</option>
											<option value="2">待收货</option>
										</select>
									</div>
								<span>&nbsp;&nbsp;&nbsp;&nbsp;设置发货物流</span>
								<div class="portlet-input input-inline">
									<select id="wl_name" class="form-control nolodding" name="wl_name">
							                  <?php
							                  $wl=$this->config->item('wl');
							                  foreach($wl as $k=>$v){
							                  ?>
							                  <option <?php if($k==$this->session->userdata('wl_name')){ echo 'selected'; }?> value="<?php echo $k; ?>"><?php echo $k; ?></option>
							                  <?php } ?>
						             </select>
							</div>
							<a class="btn purple" href="/iadmin/fh/dh" target="_blank"><i class="icon-calendar"></i> 导出物流单</a>
							</form>
							</div>
							<div class=""></div>
							<div class="table-scrollable">
								<table class="table table-bordered table-hover">
									<thead>
										<tr>
											<th>头像</th>
											<th>个人信息</th>
											<th>地址</th>
											
											<th>商品</th>
											<th>数量</th>
											<th>物流</th>
											<th>物流单号</th>
										</tr>
									</thead>
									<tbody id="tbody">
									</tbody>
								</table>
							</div>
						</div>
					</div>
					<!-- END REGIONAL STATS PORTLET-->
				</div>
			</div>
		</div>
	</div>
	

	<!-- BEGIN QUICK SIDEBAR -->
	<?php $this -> load -> view('adminx/lt'); ?>
	<!-- END QUICK SIDEBAR -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<?php $this -> load -> view('adminx/footer'); ?>
<script>
	var _model = 'fh';
	$(function() {
		get_tbody(_model, function(msg) {
			$(".set_wl:first").focus();
			$(".set_wl:first").addClass('spinner');
		});
		$('#get_tbody').find('.form-control').not('.nolodding').change(function() {
			get_tbody(_model, function(msg) {
				$(".set_wl:first").focus();
				$(".set_wl:first").addClass('spinner');
			});
		});
	});
</script>